;
; Asmedia SATA (AHCI) Driver
;
; Installation File For Microsoft Windows
;
; Version 1.0
;
; Copyright (c) Asmedia Incorporated
;
; Edited 04/12/2013
;

[Version]
Signature="$WINDOWS NT$"
Class=SCSIAdapter
ClassGUID={4D36E97B-E325-11CE-BFC1-08002BE10318}
Provider=%ASMT%
DriverVer=03/26/2014, 2.0.9.0001
CatalogFile=asstor32.cat

[SourceDisksNames]
1 = %DiskName%,,,""

[SourceDisksFiles]
asstor32.sys=1,,

[DestinationDirs]
DefaultDestDir = 12

[ControlFlags]
ExcludeFromSelect=*

;*****************************************
; Install Section
;*****************************************
[Manufacturer]
%ASMT%=ASMT,NTx86

[ASMT]

[ASMT.NTx86]
%PCI\VEN_1B21&DEV_0601.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0601
%PCI\VEN_1B21&DEV_0602.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0602
%PCI\VEN_1B21&DEV_0611.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0611
%PCI\VEN_1B21&DEV_0612.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0612
%PCI\VEN_1B21&DEV_0614.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0614
%PCI\VEN_1B21&DEV_0615.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0615


%PCI\VEN_1B21&DEV_0601.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0601&SUBSYS_84B71043
%PCI\VEN_1B21&DEV_0602.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0602&SUBSYS_84B71043
%PCI\VEN_1B21&DEV_0611.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0611&SUBSYS_84B71043
%PCI\VEN_1B21&DEV_0612.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0612&SUBSYS_84B71043
%PCI\VEN_1B21&DEV_0614.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0614&SUBSYS_84B71043
%PCI\VEN_1B21&DEV_0615.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0615&SUBSYS_84B71043


%PCI\VEN_1B21&DEV_0601.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0601&SUBSYS_858D1043
%PCI\VEN_1B21&DEV_0602.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0602&SUBSYS_858D1043
%PCI\VEN_1B21&DEV_0611.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0611&SUBSYS_858D1043
%PCI\VEN_1B21&DEV_0612.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0612&SUBSYS_858D1043
%PCI\VEN_1B21&DEV_0614.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0614&SUBSYS_858D1043
%PCI\VEN_1B21&DEV_0615.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0615&SUBSYS_858D1043


%PCI\VEN_1B21&DEV_0601.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0601&SUBSYS_858E1043
%PCI\VEN_1B21&DEV_0602.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0602&SUBSYS_858E1043
%PCI\VEN_1B21&DEV_0611.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0611&SUBSYS_858E1043
%PCI\VEN_1B21&DEV_0612.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0612&SUBSYS_858E1043
%PCI\VEN_1B21&DEV_0614.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0614&SUBSYS_858E1043
%PCI\VEN_1B21&DEV_0615.DeviceDesc%= Asmt_Inst, PCI\VEN_1B21&DEV_0615&SUBSYS_858E1043


[Asmt_Inst.NT]
CopyFiles = DriverCopyFiles
[DriverCopyFiles]
asstor32.sys

[Asmt_Inst.NT.HW]
Include            = machine.inf
Needs              = PciIoSpaceNotRequired
AddReg	= DDInstall_AddReg_HW_Removal_Policy

[DDInstall_AddReg_HW_Removal_Policy]
HKR,,"RemovalPolicy",0x00010001,3
;AddReg = InterruptMgmtValues

;[InterruptMgmtValues]
;HKR,"Interrupt Management",0x00000010
;HKR,"Interrupt Management\MessageSignaledInterruptProperties",0x00000010
;HKR,"Interrupt Management\MessageSignaledInterruptProperties",MSISupported,0x00010001,1

;-------------- Service installation
[Asmt_Inst.NT.Services]
AddService = asstor32,%SPSVCINST_ASSOCSERVICE%,Asmt_Service_Inst, Asmt_EventLog_Inst 

[Asmt_Service_Inst] 
ServiceType = %SERVICE_KERNEL_DRIVER% 
StartType = %SERVICE_BOOT_START% 
ErrorControl = %SERVICE_ERROR_NORMAL% 
ServiceBinary = %12%\asstor32.sys 
LoadOrderGroup = "SCSI Storport"
AddReg = pnpsafe_pci_addreg

;------------------Uninstall section----------------
[DefaultUninstall]
DelFiles = asstor32.DelFiles

[DefaultUninstall.Services]
DelService = asstor32

[asstor32.DelFiles]
asstor32.sys,,,
;--------------------------------------------------

[Asmt_EventLog_Inst] 
AddReg = Asmt_EventLog_Inst.AddReg 
 
[Asmt_EventLog_Inst.AddReg] 
HKR,,EventMessageFile,%REG_EXPAND_SZ%,"%%SystemRoot%%\System32\IoLogMsg.dll" 
HKR,,TypesSupported,%REG_DWORD%,7

[pnpsafe_pci_addreg] 
HKR, Parameters\PnpInterface, 5, 0x00010001, 0x00000001 
HKLM,"SYSTEM\CurrentControlSet\Services\asstor32\Parameters\Device","NumberOfRequests",0x00010001,1024 
HKR, "Parameters", "BusType", 0x00010001, 0x0000000B

[Strings]
;Localizable Strings
ASMT="Asmedia Technology"
DiskName="Asmedia 106x SATA Controller"
Desc= "Asmedia 106x SATA Controller"
PCI\VEN_1B21&DEV_0611.DeviceDesc ="Asmedia 106x SATA Controller"
PCI\VEN_1B21&DEV_0612.DeviceDesc ="Asmedia 106x SATA Controller"
PCI\VEN_1B21&DEV_0601.DeviceDesc ="Asmedia 106x SATA Controller"
PCI\VEN_1B21&DEV_0602.DeviceDesc ="Asmedia 106x SATA Controller"
PCI\VEN_1B21&DEV_0614.DeviceDesc ="Asmedia SATA Express Controller"
PCI\VEN_1B21&DEV_0615.DeviceDesc ="Asmedia SATA Express Controller"


;Non Localizable Strings 
SERVICE_BOOT_START = 0x0 
SERVICE_SYSTEM_START = 0x1 
SERVICE_AUTO_START = 0x2 
SERVICE_DEMAND_START = 0x3 
SERVICE_DISABLED = 0x4 

SERVICE_KERNEL_DRIVER = 0x1 
SERVICE_ERROR_IGNORE = 0x0 
SERVICE_ERROR_NORMAL = 0x1 
SERVICE_ERROR_SEVERE = 0x2 
SERVICE_ERROR_CRITICAL = 0x3 


REG_EXPAND_SZ = 0x00020000 
REG_DWORD = 0x00010001 

SPSVCINST_ASSOCSERVICE=0x00000002
